cmake_minimum_required(VERSION 3.4.1)

project(${TARGETS})

# 如果想要生成的可执行文件拥有符号表，可以gdb调试，就直接加上这句
add_definitions("-Wall -g")
#add_definitions(-DCONFIG_SCREAM_32_16)
#add_definitions(-DCONFIG_SCREAM_128_64)


# Add block directories
add_subdirectory(common)#添加hello文件夹中的hello库
add_subdirectory(digimon)#添加world文件夹中的world库
add_subdirectory(voled)#添加world文件夹中的world库

FILE(GLOB SRC_LIST "${PROJECT_SOURCE_DIR}/src/*.c")
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/inc)
LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/lib)


ADD_EXECUTABLE(${TARGETS} main.c)
#0-[32*16]
#1-[128*64]


TARGET_LINK_LIBRARIES(${TARGETS} digimon common voled)

